package com.kyivmohyla.kma2.dao.mapper;

import com.kyivmohyla.kma2.model.Position;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class PositionRowMapper implements RowMapper<Position> {

    @Override
    public Position mapRow(ResultSet rs, int line) throws SQLException {
        PositionResultSetExtractor extractor = new PositionResultSetExtractor();
        return extractor.extractData(rs);
    }

}
